
#include <QtCore/QDebug>
#include <QtCore/QSharedMemory>

#include <qt_windows.h>

#include "LcdWatchdogApplication.h"

#define SHARED_MEMORY_SINGLETON		"{F1691B3A-1EF3-4376-A545-DE1C4B98964A}"


int main(int argc, char *argv[])
{
	HWND hwnd = GetConsoleWindow();
	ShowWindow(hwnd, 0);

	QSharedMemory sharedMemory(SHARED_MEMORY_SINGLETON);
	if(sharedMemory.create(sizeof(int))==true)
	{
		LcdWatchdogApplication a(argc, argv);

		if(a.exitCode!=0)
			return a.exitCode;
		int ret = a.exec();
		a.shutdown();
		return ret;
	}
	return 0;
}